package car;

public class CarDemo {
	public static void main(String[] args) {
		Ferrari f1 = new Ferrari("spider", false, 320); 
		Trolley t1 = new Trolley();
		t1.changeColor("white");
		System.out.println(t1.getColor());
		t1.moveToAnotherStop();
		t1.moveToAnotherStop();
		
		Bus b1 = new Bus(2.0);
		b1.moveToAnotherStop();
		System.out.println("ticket price: " + b1.getTicketPrice());
		b1.riseTicketPrice();
		System.out.println("ticket price: " + b1.getTicketPrice());
		
		Jeep j1 = new Jeep();
		j1.setCurrentGear(5);
		j1.setCurrentGear(-5);
		j1.setCurrentSpeed(120);
		j1.driveOffRoad();
		SportCar s1 = new SportCar();
		System.out.println(s1.isSportCar());
		
		s1.startEngine();
		
		Car ferrari = new Car();
	}
}
